package chixing.day06.homework;


public class StudentTest {
    public static void main(String[] args) {
        /*
        * 1.new():开辟一块堆内存
        * 2.Student():初始化对象属性
        * 3.执行构造函数的方法体
        * 4.将对象名指向该堆内存
        * */
        Student student1 = new Student();
        student1.setStuId(1);
        student1.setStuName("aaa");
        student1.setStuGender('c');

        Student student2 = new Student(2,"bbb",'a');

        student1.study();
        student2.playGame();


    }


}
